<?php
/**
 * @package Framework
 * @subpackage Controls
 */

/**
 * Create a from
 * 
 * @package Framework
 * @subpackage Controls
 * 
 * @access public
 */
require_once($GO_CONFIG->class_path.'base/controls/html_element.class.inc');

class form extends html_element
{	
	function form($name='form', $method='post', $action='')
	{
		$this->tagname = 'form';		
		$this->set_linebreak("\n");
		$this->set_attribute('name', $name);
		$this->set_attribute('method', $method);
		if($action == '')
		{
			$action = $_SERVER['PHP_SELF'];
		}
		$this->set_attribute('action', $action);	
	}
}
